package com.sky.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author 贾晓晨
 * @version 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WebListDTO implements Serializable {
    @ApiModelProperty("网站名称")
    @NotBlank(message = "网站名称不能为空")
    @Size(max = 100, message = "网站名称最长100个字符")
    private String webName;

    @ApiModelProperty("网站url")
    @NotBlank(message = "URL不能为空")
    private String url;

    @ApiModelProperty("网站头像")
    private String webAvatar;

    @ApiModelProperty("介绍")
    @Size(max = 500, message = "描述最长500个字符")
    private String description;

    @ApiModelProperty("联系方式")
    @NotBlank(message = "联系方式不能为空")
    @Size(max = 100, message = "联系方式最长100个字符")
    private String contact;
}
